package com.aipartner.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * VIP Order Entity
 * 
 * @author AI Partner Team
 * @since 2024-01-20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("vip_orders")
public class VipOrder {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    @TableField("order_no")
    private String orderNo;
    
    @TableField("user_id")
    private Long userId;
    
    @TableField("vip_type")
    private String vipType;
    
    @TableField("vip_name")
    private String vipName;
    
    @TableField("amount")
    private BigDecimal amount;
    
    @TableField("paid_amount")
    private BigDecimal paidAmount;
    
    @TableField("payment_method")
    private String paymentMethod;
    
    @TableField("status")
    private String status;
    
    @TableField("third_party_order_no")
    private String thirdPartyOrderNo;
    
    @TableField("remark")
    private String remark;
    
    @TableField("paid_time")
    private LocalDateTime paidTime;
    
    @TableField("expire_time")
    private LocalDateTime expireTime;
    
    @TableField("vip_start_time")
    private LocalDateTime vipStartTime;
    
    @TableField("vip_end_time")
    private LocalDateTime vipEndTime;
    
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableField("deleted")
    private Integer deleted;
}